FROM ubuntu:21.04

LABEL maintainer="xdicac226@163.com"

ENV HOME /root
ENV DEBIAN_FRONTEND noninteractive

RUN rm -f /etc/apt/sources.list
ADD sources.list /etc/apt/sources.list

RUN apt-get update \
	&& apt-get install -y supervisor \
		openssh-server nano \
		xfce4 xfce4-goodies \
		x11vnc xvfb \
		firefox \
	&& apt-get autoclean \
	&& apt-get autoremove \
	&& rm -rf /var/lib/apt/lists/*

WORKDIR /root

ADD startup.sh ./
ADD supervisord.conf ./

EXPOSE 5900
EXPOSE 22

ENTRYPOINT ["./startup.sh"]
